package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_18_1C extends SkymobiProtocolMessage {
	int hallState;
	int roleId;
	int orderType; // 求购(0), 寄售(1)
	int price; // 单价(万/100元宝)
	int amount; // 元宝总量

	public Mmochat_18_1C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_18_1);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		hallState = in.getUnsignedShort();
		roleId = in.getInt();
		orderType = in.getInt();
		price = in.getInt();
		amount = in.getInt();
	}

	public int getHallState() {
		return hallState;
	}

	public int getRoleId() {
		return roleId;
	}

	public int getOrderType() {
		return orderType;
	}

	public int getPrice() {
		return price;
	}

	public int getAmount() {
		return amount;
	}

}